package com.sysmanage.permissions.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/** 
  * @ClassName: Systems 
  * @Description: 系统信息实体类
  * @author XXXX@163.com
  * @date 2011-9-26 上午10:03:39 
  *  
  */
@Entity
@Table(name = "c_system")
public class Systems implements Serializable {
	private Integer id;
	private String name;
	private String contextPath;  //应用路径
	private String logonUrl;
	private String logoffUrl;
	private String logo;
	private String icon;
	private String version;
	private String builddate;
	private String memo;
	private String order;
	private Integer status;


	private String ext1;
	private String ext2;  //用主帐号登录
	private String ext3;
	private String ext4;
	private String ext5;
	
	private Integer parentId;
	private String isFolder;
	

	public Systems() {
		super();
	}

	public Systems(Integer id, String name, String contextPath,
			String logonUrl, String logoffUrl,String logo, String icon, String version,
			String builddate, Integer status, String order, String memo) {
		this.id = id;
		this.name = name;
		this.contextPath = contextPath;
		this.logonUrl = logonUrl;
		this.logoffUrl = logoffUrl;
		this.logo = logo;
		this.icon = icon;
		this.version = version;
		this.builddate = builddate;
		this.status = status;
		this.order = order;
		this.memo = memo;
	}
	
	@Column(name="builddate",length=10)
	public String getBuilddate() {
		return builddate;
	}
	@Column(name="contextpath",length=50,nullable=false)
	public String getContextPath() {
		return contextPath;
	}

	@Column(name="icon",length=30)
	public String getIcon() {
		return icon;
	}
	@Id
	@Column(name="SYSTEM_ID",nullable=false,unique=true)
	public Integer getId() {
		return id;
	}
	@Column(name="logo",length=30)
	public String getLogo() {
		return logo;
	}
	@Column(name="memo",length=50)
	public String getMemo() {
		return memo;
	}
	@Column(name="cname",nullable=false,length=30)
	public String getName() {
		return name;
	}
	@Column(name="orderid",length=10)
	public String getOrder() {
		return order;
	}
	@Column(name="status",nullable=false)
	public Integer getStatus() {
		return status;
	}
	@Column(name="LOGOFF_URL",nullable=false,length=512)
	public String getLogoffUrl() {
		return logoffUrl;
	}
	@Column(name="version",length=10)
	public String getVersion() {
		return version;
	}
	@Column(name="LOGON_URL",nullable=false,length=512)
	public String getLogonUrl() {
		return logonUrl;
	}

	@Column(name="EXT1",length=512)
	public String getExt1() {
		return ext1;
	}
	@Column(name="EXT2",length=512)
	public String getExt2() {
		return ext2;
	}
	@Column(name="EXT3",length=512)
	public String getExt3() {
		return ext3;
	}
	@Column(name="EXT4",length=512)
	public String getExt4() {
		return ext4;
	}
	@Column(name="EXT5",length=512)
	public String getExt5() {
		return ext5;
	}
	
	@Column(name="PARENT_ID")
	public Integer getParentId() {
		return parentId;
	}

	@Column(name="IS_FOLDER",length=10)
	public String getIsFolder() {
		return isFolder;
	}

	public void setLogonUrl(String logonUrl) {
		this.logonUrl = logonUrl;
	}
	public void setBuilddate(String builddate) {
		this.builddate = builddate;
	}

	public void setContextPath(String contextPath) {
		this.contextPath = contextPath;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public void setLogoffUrl(String logoffUrl) {
		this.logoffUrl = logoffUrl;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public void setExt1(String ext1) {
		this.ext1 = ext1;
	}

	public void setExt2(String ext2) {
		this.ext2 = ext2;
	}

	public void setExt3(String ext3) {
		this.ext3 = ext3;
	}

	public void setExt4(String ext4) {
		this.ext4 = ext4;
	}

	public void setExt5(String ext5) {
		this.ext5 = ext5;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	public void setIsFolder(String isFolder) {
		this.isFolder = isFolder;
	}
	public String toString()
	{
		return "系统[id:"+this.getId()+",name:"+this.getName()+"]";
	}
}
